package com.lmc.hibernate.pojo;

import java.sql.Timestamp;

/**
 * TeacherId entity. @author MyEclipse Persistence Tools
 */

public class TeacherId implements java.io.Serializable {

	// Fields

	private String tname;
	private String tpwd;
	private String argee;
	private Timestamp time;

	// Constructors

	/** default constructor */
	public TeacherId() {
	}

	/** full constructor */
	public TeacherId(String tname, String tpwd, String argee, Timestamp time) {
		this.tname = tname;
		this.tpwd = tpwd;
		this.argee = argee;
		this.time = time;
	}

	// Property accessors

	public String getTname() {
		return this.tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public String getTpwd() {
		return this.tpwd;
	}

	public void setTpwd(String tpwd) {
		this.tpwd = tpwd;
	}

	public String getArgee() {
		return this.argee;
	}

	public void setArgee(String argee) {
		this.argee = argee;
	}

	public Timestamp getTime() {
		return this.time;
	}

	public void setTime(Timestamp time) {
		this.time = time;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TeacherId))
			return false;
		TeacherId castOther = (TeacherId) other;

		return ((this.getTname() == castOther.getTname()) || (this.getTname() != null
				&& castOther.getTname() != null && this.getTname().equals(
				castOther.getTname())))
				&& ((this.getTpwd() == castOther.getTpwd()) || (this.getTpwd() != null
						&& castOther.getTpwd() != null && this.getTpwd()
						.equals(castOther.getTpwd())))
				&& ((this.getArgee() == castOther.getArgee()) || (this
						.getArgee() != null && castOther.getArgee() != null && this
						.getArgee().equals(castOther.getArgee())))
				&& ((this.getTime() == castOther.getTime()) || (this.getTime() != null
						&& castOther.getTime() != null && this.getTime()
						.equals(castOther.getTime())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTname() == null ? 0 : this.getTname().hashCode());
		result = 37 * result
				+ (getTpwd() == null ? 0 : this.getTpwd().hashCode());
		result = 37 * result
				+ (getArgee() == null ? 0 : this.getArgee().hashCode());
		result = 37 * result
				+ (getTime() == null ? 0 : this.getTime().hashCode());
		return result;
	}

}